<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInLeft">
        <div data-th-replace="common/functionDepict"></div>
        <div class="  alert alert-warning alert-dismissable col-sm-12">
            <strong>重要提示：</strong>
            <p>在视频/音频上传过程中请勿刷新或跳转页面,防止上传失败</p>
        </div>
        <div>
            <div class="ibox float-e-margins" id="iboxWrap">
                <th:block th:if="${vlasProviderMap['type']}=='96K' or ${vlasProviderMap['isK96keVideo']} =='ON' ">
                    <iframe class="iboxIframe" th:src="${configMap['batchCreateVideoUrl']}+'?customerkey='+${configMap['customerKey']}+'&filetype=1'" width="100%" height="1000" frameborder="no" border="0" seamless></iframe>
                </th:block>
                <th:block th:if="${vlasProviderMap['type']} !='96K' and ${vlasProviderMap['isK96keVideo']} =='OFF' ">
                    <div>
                        <div class="noDataTipsBox">
                            <p><span class="c-4e fs16">亲，当前系统使用不是268云服务，不可使用268云服务上传视频文件~~~</span></p>
                        </div>
                    </div>
                </th:block>
            </div>
        </div>
    </div>
    <div data-th-replace="layout/head-footer"></div>
    <script th:inline="javascript" type="text/javascript">
        var videoType =[[ ${vlasProviderMap}]];
        $(function () {
            if(videoType.type!='96K'&&videoType.isK96keVideo=="OFF" ){
                icModale(1,'当前系统使用不是268云服务，不可使用268云服务上传视频文件');
                return false;
            }
            var iboxHeight=$('#iboxWrap').height();
            $('#iboxWrap > .iboxIframe').attr('height', iboxHeight);

            //$('#iboxWrap > .iboxIframe').get(0).contentWindow.document.getElementsByTagName('body')[0].style.backgroundColor = "white"
        });

      /*  //96k 资源上传回调
        window.addEventListener('message', function (response) {
            var index = parent.layer.confirm("文件已上传完成，是否要继续上传？", {
                icon: 3,
                title: '提示',
                btn: ['确认', '取消'],
                shade: [0.3, '#000000']
            }, function () {
                window.location.href = baseloaction +'/admin/course/batchUpload';
                parent.layer.close(index);
            },function () {
                window.location.href = baseloaction +'/admin/course/demand/toDemandIndex';
            });
        }, false);*/
    </script>
</body>
</html>
